#pragma once
#include <d3dx9.h>


struct CUSTOMVERTEX
{
    D3DXVECTOR3 pos;
    DWORD color;
};
class c2DDevice
{
public:
//int SelectedQuad;
//void SetSelectedQuad(int SelectedQuad){ this->SelectedQuad = SelectedQuad; }
//int GetSelectedQuad(){ return SelectedQuad; }
//int SelectedQuadPosX;
//int SelectedQuadPosY;
//void SetSelectedQuadPosX(int SelectedQuadPosX){ this->SelectedQuadPosX = SelectedQuadPosX; }
//int GetSelectedQuadPosX(){ return SelectedQuadPosX; }
//void SetSelectedQuadPosY(int SelectedQuadPosY){ this->SelectedQuadPosY = SelectedQuadPosY; }
//int GetSelectedQuadPosY(){ return SelectedQuadPosY; }



	LPDIRECT3D9             g_pD3D;
	LPDIRECT3D9  GetDirect3D(){ return g_pD3D; }
	LPDIRECT3DDEVICE9       g_pd3dDevice;
	LPDIRECT3DDEVICE9  GetDevice(){ return g_pd3dDevice; }
	

	
	c2DDevice();
	~c2DDevice();
	HRESULT Restart();
	VOID SetupMatrices();
	void ReleaseInterface();
	VOID Render();
};